<?php
class FreeSql{
	public function getPetByOwner($ownerFname, $ownerLname){
		$sql = "SELECT p.* FROM pet p,owner o ";
		$sql .= "WHERE (o.fname LIKE '%".$ownerFname."%') ";
		$sql .=" AND p.owner_id = o.owner_id";
		return $sql;
	}
}